<template>

      
    <el-main>
            <el-upload
                  class="upload-demo"
                  style="float: right;color: #fff!implement;"
                  action="https://jsonplaceholder.typicode.com/posts/"
                  :on-preview="handlePreview"
                  :on-remove="handleRemove"
                  :before-remove="beforeRemove"
                  multiple
                  :limit="3"
                  :on-exceed="handleExceed"
                  :file-list="fileList"
                >
                  <el-button  type="text">稽查报告上传</el-button>

                </el-upload>
           <div>
          <el-form  label-position="left" label-width="100px" ref="form" :model="form" >
            
                <div style="float:left">
                    时间
                </div>
                <div>
                    <el-input  style="width:20%"  placeholder="请选择日期"    suffix-icon="el-icon-date"    v-model="input1">  </el-input>
                </div>
                <div style="float:left">
                    姓名
                </div>
                <div>
                    <el-input style="width:20%"  v-model="input2" placeholder="请输入内容"></el-input>
                </div>
                <div style="float:left">
                    车牌
                </div>
                <div>
                    <el-input style="width:20%"  v-model="input3" placeholder="请输入内容"></el-input>
                </div>
                <div style="float:left">
                    地点
                </div>
                <div>
                    <el-input style="width:80%"  v-model="input4" placeholder="请输入内容"></el-input>
                </div>
                <div style="float:left">
                    具体原因
                </div>
                <div>
                    <el-input type="textarea" :rows="2" placeholder="请输入内容" v-model="textarea"> </el-input>
                </div>

          </el-form>
</div>
      </el-main>
</template>
<script>
  export default {
    data() {
      return {
        form: {
        }
      }
    },
    methods: {
    data() {
      return {
        fileList: [{name: 'food.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}, {name: 'food2.jpeg', url: 'https://fuss10.elemecdn.com/3/63/4e7f3a15429bfda99bce42a18cdd1jpeg.jpeg?imageMogr2/thumbnail/360x360/format/webp/quality/100'}]
      };
    },
    handleRemove(file, fileList) {
        console.log(file, fileList);
      },
      handlePreview(file) {
        console.log(file);
      },
      handleExceed(files, fileList) {
        this.$message.warning(`当前限制选择 3 个文件，本次选择了 ${files.length} 个文件，共选择了 ${files.length + fileList.length} 个文件`);
      },
      beforeRemove(file, fileList) {
        //return this.$confirm(`确定移除 ${ file.name }？`);
        return this.$confirm(`关闭提示？`);
      },      
      onSubmit() {
        console.log('submit!');
      }
    }
  }
</script>
